package sunlight.util;

public class StringsUtil {

	public static String addPathSeparatorToEnd(String path){
		
		String separator= System.getProperty("path.separator");
		
		if(path.lastIndexOf(separator) != (path.length() -1)){
			path+= separator;
		}
		
		return path;
	}
	
	public static String addQuestionMark(String url){
		url = url.trim();
		
		if(url.lastIndexOf("?") != (url.length() -1)){
			url+= "?"; 
		}
		
		return url;
	}
	
}
